#include <iostream>
#include "circle_queue.hpp"

int main()
{
    CircleQueue<int, 5> q;
    int elem;
    elem = 1;
    q.push(elem);
    elem = 2;
    q.push(elem);
    elem = 3;
    q.push(elem);
    std::cout << "队列的长度:" << q.size() << std::endl;
    q.print_queue();

    elem = q.head();
    q.pop();
    std::cout << "出队元素值:" << elem << std::endl;
    elem = q.head();
    q.pop();
    std::cout << "出队元素值:" << elem << std::endl;

    elem = 11;
    q.push(elem);
    elem = 12;
    q.push(elem);
    elem = 13;
    q.push(elem);
    elem = 14;
    q.push(elem);
    elem = 15;
    q.push(elem);
    std::cout << "队列的长度:" << q.size() << std::endl;
    q.print_queue();
}

